import { request } from '../../utils/request'

// 获取所有权限点
export const login = {
  wxLogin: data => {
    return request({
      url: '/adminapp/loginWxMiniprogram',
      method: 'post',
      data,
      hideToast: true
    })
  },
  getUserInfo: data => {
    return request({ url: '/adminapp/scopeWxUserInfo', method: 'post', data })
  },
  accountLogin: data => {
    return request({
      url: '/adminapp/login',
      method: 'post',
      data,
      hideToast: true
    })
  }
}
